//import org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration;
import org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration;
dataSource {
	pooled = true
	driverClassName = "org.hsqldb.jdbcDriver"
	username = "sa"
	password = ""
	dialect = "org.hibernate.dialect.PostgreSQLDialect"
	configClass = GrailsAnnotationConfiguration.class
}
hibernate {
	cache.use_second_level_cache=true
	cache.use_query_cache=true
	cache.provider_class='com.opensymphony.oscache.hibernate.OSCacheProvider'
}

// environment specific settings
environments {
	development {
		/*
		 dataSource {
		 dbCreate = "create-drop" // one of 'create', 'create-drop','update'
		 url = "jdbc:hsqldb:mem:devDB"
		 }
		 */
		dataSource {
			configClass = GrailsAnnotationConfiguration.class
			dbCreate = "update" // one of 'create', 'create-drop','update'
			//url = "jdbc:hsqldb:mem:devDB"
			url = "jdbc:postgresql://localhost:5432/ghrm"
			driverClassName = "org.postgresql.Driver"
			username = "postgres"
			password = "root"
		}
	}
	test {
		dataSource {
			dbCreate = "update"
			url = "jdbc:hsqldb:mem:testDb"
		}
	}
	production {
		dataSource {
			dbCreate = "update"
			url = "jdbc:hsqldb:file:prodDb;shutdown=true"
		}
	}
}